<template>
  <component :is="iconComponent"/>
</template>
<script setup lang="ts">
import * as icons from '@ant-design/icons-vue';
import { computed } from 'vue';
const iconComponent = computed(()=>{
  if(props.icon)
    return icons[props.icon];
  return undefined
})
const props=defineProps({
  icon: {
    type: String,
  }
})
</script>
<style lang="less" scoped>

</style>